﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace NutriLeaf.Services.Core.ModuleVersion
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IModuleVersion" in both code and config file together.
    [ServiceContract]
    public interface IModuleVersion
    {
        [OperationContract]
        void InsertModuleVersion(string moduleName);
        [OperationContract]
        bool Exists(string name);
        [OperationContract]
        void DeleteModule(string name);
        [OperationContract]
        int GetVersion(string name);
        [OperationContract]
        void UpdateVersion(string name, int number);
        [OperationContract]
        void IncreaseVersion(string name);
        [OperationContract]
        void DecreaseVersion(string name);
        [OperationContract]
        NutriLeaf.Web.Model.ModuleVersion GetModule(string name);
        [OperationContract]
        bool IsLatest(string name, int version);


    }
}
